package com.wst.system.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wst.system.security.entity.SysUserTokenEntity;

import java.util.Date;
import java.util.List;

/**
 *
 */
public interface SysUserTokenService extends IService<SysUserTokenEntity> {

    public SysUserTokenEntity getSysUserTokenByToken(String token);

    public SysUserTokenEntity getSysUserTokenByToken(String token, String type);

    public SysUserTokenEntity removTokenByToken(String token);

    public List<SysUserTokenEntity> getSysUserTokenByUserId(Integer userId, String type, Date date);

    public String getSessionId();
}
